package io.geekidea.springbootplus.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.geekidea.springbootplus.framework.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.math.BigDecimal;
import java.util.Date;




@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "CartItem对象",description = "购物项实体类")
public class SysCartItem extends BaseEntity{

    private static final long serialVersionUID = -8018205544044492562L;


    @ApiModelProperty("主键")
    private Integer id;

    @ApiModelProperty("商品编号")
    private Integer productId;


    @ApiModelProperty("商品名称")
    private String productName;


    @ApiModelProperty("商品图片")
    private String productCover;

    @ApiModelProperty("用户编号")
    private Integer memberId;

    @ApiModelProperty("购买数量")
    private Integer quantity;

    @ApiModelProperty("商品价格")
    private BigDecimal price;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("逻辑删除，0：未删除，1：已删除")
    private Integer deleted;


}
